package com.serviceprovider.business.module.report.valueobjects;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.admin.shipping.model.ShipMode;

import org.apache.commons.collections.FactoryUtils;
import org.apache.commons.collections.list.LazyList;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;

//~--- JDK imports ------------------------------------------------------------

import java.util.ArrayList;
import java.util.List;

public class PlaceOrderVO {
    private List<BatchVO> batchList;
    private Boolean       hasNewTransactions;
    @NotBlank
    private String        orderName;
    private String        shippingInstructions;
    private Integer       shippingMode;
    private String        shippingTips;

    @SuppressWarnings("unchecked")
    public PlaceOrderVO() {
        batchList = LazyList.decorate(new ArrayList<ShipMode>(), FactoryUtils.instantiateFactory(BatchVO.class));
    }

    public Boolean getHasNewTransactions() {
        return hasNewTransactions;
    }

    public void setHasNewTransactions(Boolean hasNewTransactions) {
        this.hasNewTransactions = hasNewTransactions;
    }

    public void setBatchVOList(List<BatchVO> batchList) {
        this.batchList = batchList;
    }

    public List<BatchVO> getBatchList() {
        return batchList;
    }

    public void setBatchList(List<BatchVO> batchList) {
        this.batchList = batchList;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public Integer getShippingMode() {
        return shippingMode;
    }

    public void setShippingMode(Integer shippingMode) {
        this.shippingMode = shippingMode;
    }

    public String getShippingTips() {
        return shippingTips;
    }

    public void setShippingTips(String shippingTips) {
        this.shippingTips = shippingTips;
    }

    public String getShippingInstructions() {
        return shippingInstructions;
    }

    public void setShippingInstructions(String shippingInstructions) {
        this.shippingInstructions = shippingInstructions;
    }
}



